package com.flycms.module.project.dao;

import com.flycms.module.project.model.Project;
import com.flycms.module.project.param.ProjectParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectDao {

    int count(@Param("param") ProjectParam param);

    List<Project> selectByPage(@Param("param") ProjectParam param,
                               @Param("index") Integer index,
                               @Param("size") Integer size);

    void insertSelective(Project project);

    void del(@Param("id") Long id);

    void update(Project project);
}
